#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
启动脚本 - 解决相对导入问题
"""

import sys
import os
from pathlib import Path

# 添加src目录到Python路径
project_root = Path(__file__).parent
src_path = project_root / 'src'
sys.path.insert(0, str(src_path))

# 现在可以导入web应用
from web.app import create_app

if __name__ == '__main__':
    app = create_app()
    app.run(host='127.0.0.1', port=5000, debug=True)